﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerMaster.master" AutoEventWireup="true" CodeBehind="CustomerChangePassword.aspx.cs" Inherits="EHTWebsiteProject.CustomerChangePassword" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentView" runat="server">
      <div style="background-color:White;height:3px"></div>
        <div style="background-color:#ff6600; height:20px; padding-top:10px; width: 594px;">
        
    <h2 style="color:White">
        <asp:Label ID="lbChangePass" runat="server" Text="Endre Passord"></asp:Label>
    </h2>
    </div>
     <div class="content-center">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tr>
                <td colspan="2" style="text-align:left;font-size:11px;">
                    <span class="failureNotification">
                        <asp:Literal ID="ltrMessageFail" runat="server"></asp:Literal>
                    </span>
                    <span class="NotificationSuccess">
                        <asp:Literal ID="ltrMessageSuccess" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbPasswordOld" runat="server">Passord</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtPasswordOld" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPasswordOld" runat="server" ControlToValidate="txtPasswordOld"
                        CssClass="failureNotification" ErrorMessage="Passord gammel kreves." ToolTip="Passord gammel kreves."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbPassword" runat="server">Passord ny</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rPassword" runat="server" ControlToValidate="txtPassword"
                        CssClass="failureNotification" ErrorMessage="Passord er obligatorisk." ToolTip="Passord er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                </th>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbConfirmPassword" runat="server">Bekreft passord ny</asp:Label>:
                </td>
                <th>
                    <asp:TextBox ID="txtConfirmPassword" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rConfirmPassword" runat="server" ControlToValidate="txtConfirmPassword"
                        CssClass="failureNotification" ErrorMessage="Bekreft passord er obligatorisk." ToolTip="Bekreft passord er obligatorisk."
                        ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cConfirmPassword" CssClass="failureNotification" ControlToValidate="txtConfirmPassword"
                        ControlToCompare="txtPassword" runat="server" ErrorMessage="Bekreft passord er ikke samme passord."
                        ToolTip="Bekreft passord er ikke samme passord." ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                </th>
            </tr>
            <tr>
                <td></td>
                <th> 
                    <asp:Button ID="btnChange" runat="server" Text="Endre" 
                        ValidationGroup="RegisterUserValidationGroup" CssClass="Button"
                        onclick="btnChange_Click" Width="87px" />
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="Tilbake" 
                       CssClass="Button"
                       Width="87px" onclick="btnCancel_Click1" />
                
                </th>
            </tr>
        </table>
    </div>
</asp:Content>
